import { constantRoutes } from '@/router'
export default {
  namespaced: true,
  state() {
    return {
      // ! 路由列表，静态路由作为初始值
      menuList: [...constantRoutes]
    }
  },
  mutations: {
    // ! 将动态路由添加到里面
    setMenuList(state, asyncRoutes) {
      state.menuList = [...constantRoutes, ...asyncRoutes]
    }
  }

}
